package demo.controller;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import demo.dao.IOrdersDao;

@RestController
@RequestMapping("orders")
public class OrdersControllerForAdmin {

	@Resource
	private IOrdersDao dao;
	
	@RequestMapping("findAll.do")
	public Map findAll() {
		Map map = new HashMap();
		map.put("code","0");
		map.put("msg","");
		map.put("count","100");
		map.put("data",dao.findAllForAdmin());
		return map;
	}
}
